﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DataSet" targetNamespace="http://tempuri.org/DataSet.xsd" xmlns:mstns="http://tempuri.org/DataSet.xsd" xmlns="http://tempuri.org/DataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="SchoolConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="SchoolConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Innovation.School.Model.Properties.Settings.GlobalReference.Default.SchoolConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="MenuItemsTableAdapter" GeneratorDataComponentClassName="MenuItemsTableAdapter" Name="MenuItems" UserDataComponentName="MenuItemsTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="SchoolConnectionString (Settings)" DbObjectName="School.dbo.ui_MenuItems" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[ui_MenuItems] WHERE (([MenuItemId] = @Original_MenuItemId) AND ((@IsNull_ParentId = 1 AND [ParentId] IS NULL) OR ([ParentId] = @Original_ParentId)) AND ((@IsNull_MenuText = 1 AND [MenuText] IS NULL) OR ([MenuText] = @Original_MenuText)) AND ((@IsNull_LinkUrl = 1 AND [LinkUrl] IS NULL) OR ([LinkUrl] = @Original_LinkUrl)) AND ([IsSystem] = @Original_IsSystem))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_MenuItemId" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="MenuItemId" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ParentId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ParentId" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_ParentId" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ParentId" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MenuText" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MenuText" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_MenuText" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MenuText" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LinkUrl" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LinkUrl" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LinkUrl" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LinkUrl" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsSystem" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsSystem" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[ui_MenuItems] ([MenuItemId], [ParentId], [MenuText], [LinkUrl], [IsSystem]) VALUES (@MenuItemId, @ParentId, @MenuText, @LinkUrl, @IsSystem);
SELECT MenuItemId, ParentId, MenuText, LinkUrl, IsSystem FROM ui_MenuItems WHERE (MenuItemId = @MenuItemId)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@MenuItemId" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="MenuItemId" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@ParentId" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ParentId" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@MenuText" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MenuText" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LinkUrl" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LinkUrl" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IsSystem" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsSystem" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT MenuItemId, ParentId, MenuText, LinkUrl, IsSystem FROM dbo.ui_MenuItems</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[ui_MenuItems] SET [MenuItemId] = @MenuItemId, [ParentId] = @ParentId, [MenuText] = @MenuText, [LinkUrl] = @LinkUrl, [IsSystem] = @IsSystem WHERE (([MenuItemId] = @Original_MenuItemId) AND ((@IsNull_ParentId = 1 AND [ParentId] IS NULL) OR ([ParentId] = @Original_ParentId)) AND ((@IsNull_MenuText = 1 AND [MenuText] IS NULL) OR ([MenuText] = @Original_MenuText)) AND ((@IsNull_LinkUrl = 1 AND [LinkUrl] IS NULL) OR ([LinkUrl] = @Original_LinkUrl)) AND ([IsSystem] = @Original_IsSystem));
SELECT MenuItemId, ParentId, MenuText, LinkUrl, IsSystem FROM ui_MenuItems WHERE (MenuItemId = @MenuItemId)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@MenuItemId" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="MenuItemId" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@ParentId" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ParentId" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@MenuText" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MenuText" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LinkUrl" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LinkUrl" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IsSystem" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsSystem" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_MenuItemId" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="MenuItemId" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ParentId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ParentId" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_ParentId" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ParentId" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MenuText" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MenuText" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_MenuText" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MenuText" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LinkUrl" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LinkUrl" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LinkUrl" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LinkUrl" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsSystem" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsSystem" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="MenuItemId" DataSetColumn="MenuItemId" />
              <Mapping SourceColumn="ParentId" DataSetColumn="ParentId" />
              <Mapping SourceColumn="MenuText" DataSetColumn="MenuText" />
              <Mapping SourceColumn="LinkUrl" DataSetColumn="LinkUrl" />
              <Mapping SourceColumn="IsSystem" DataSetColumn="IsSystem" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="DataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DataSet" msprop:Generator_UserDSName="DataSet">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="MenuItems" msprop:Generator_TableClassName="MenuItemsDataTable" msprop:Generator_TableVarName="tableMenuItems" msprop:Generator_TablePropName="MenuItems" msprop:Generator_RowDeletingName="MenuItemsRowDeleting" msprop:Generator_UserTableName="MenuItems" msprop:Generator_RowChangingName="MenuItemsRowChanging" msprop:Generator_RowEvHandlerName="MenuItemsRowChangeEventHandler" msprop:Generator_RowDeletedName="MenuItemsRowDeleted" msprop:Generator_RowEvArgName="MenuItemsRowChangeEvent" msprop:Generator_RowChangedName="MenuItemsRowChanged" msprop:Generator_RowClassName="MenuItemsRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="MenuItemId" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnMenuItemId" msprop:Generator_ColumnPropNameInRow="MenuItemId" msprop:Generator_ColumnPropNameInTable="MenuItemIdColumn" msprop:Generator_UserColumnName="MenuItemId" type="xs:string" />
              <xs:element name="ParentId" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnParentId" msprop:Generator_ColumnPropNameInRow="ParentId" msprop:Generator_ColumnPropNameInTable="ParentIdColumn" msprop:Generator_UserColumnName="ParentId" type="xs:string" minOccurs="0" />
              <xs:element name="MenuText" msprop:Generator_ColumnVarNameInTable="columnMenuText" msprop:Generator_ColumnPropNameInRow="MenuText" msprop:Generator_ColumnPropNameInTable="MenuTextColumn" msprop:Generator_UserColumnName="MenuText" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="LinkUrl" msprop:Generator_ColumnVarNameInTable="columnLinkUrl" msprop:Generator_ColumnPropNameInRow="LinkUrl" msprop:Generator_ColumnPropNameInTable="LinkUrlColumn" msprop:Generator_UserColumnName="LinkUrl" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="IsSystem" msprop:Generator_ColumnVarNameInTable="columnIsSystem" msprop:Generator_ColumnPropNameInRow="IsSystem" msprop:Generator_ColumnPropNameInTable="IsSystemColumn" msprop:Generator_UserColumnName="IsSystem" type="xs:boolean" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:MenuItems" />
      <xs:field xpath="mstns:MenuItemId" />
    </xs:unique>
  </xs:element>
</xs:schema>